home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makeflag.os2 < prev    next >
Encoding:
Text File  |  1993-12-30  |  1.6 KB  |  88 lines

  1. #
  2. # OS2 using EMX 0.8f gcc 2.0, and gnumake.
  3. #
  4.  
  5. EMX_DIR = c:/g/emx
  6. IRIT_DIR = d:/c/irit
  7.  
  8. #
  9. # Name of graphics drivers to generate.
  10. #
  11. GRAPDRVS = os2drvs.exe nuldrvs.exe
  12.  
  13. #
  14. # Generic tools from the unix world
  15. #
  16.  
  17. RM = rm
  18. CP = cp
  19. MV = mv
  20. STRIP = strip +strip-debug 
  21.  
  22. #
  23. # All libraries created will be installed into the LIB_DIR directory.
  24. #
  25.  
  26. LIB_DIR = $(IRIT_DIR)/lib
  27. PRSR_LIB = $(LIB_DIR)/libprsr.a
  28. CAGD_LIB = $(LIB_DIR)/libcagd.a
  29. GEOM_LIB = $(LIB_DIR)/libgeom.a
  30. MISC_LIB = $(LIB_DIR)/libmisc.a
  31. GIF_LIB = d:/c/gif_lib/lib/libgif.a
  32.  
  33. #
  34. # Where gcc libraries are to searched for.
  35. #
  36. GCC_LIB_DIR = $(EMX_DIR)/lib
  37. GCC_INC_DIR = $(EMX_DIR)/include
  38.  
  39. #
  40. # All includes files associated with the libraries compiled here will be
  41. # installed into the INC directory.
  42. #
  43. INC_DIR = $(IRIT_DIR)/inc
  44. GIF_INC = d:/c/gif_lib/lib
  45.  
  46. #
  47. # All binaries created will be installed into the BIN directory.
  48. #
  49. BIN_DIR = d:/c/irit/bin
  50.  
  51. # Your C compiler and linker.
  52. #
  53. # -DSUPPORT_GIF_SAVE if you actually have gif lib and would like poly3d to
  54. # save gif images.
  55. #
  56. CC = gcc
  57. DFLAGS = -DOS2GCC -DSUPPORT_GIF_SAVE -DRAND
  58. #CFLAGS = -O2 -W -Wall -I. -I$(INC_DIR)
  59. CFLAGS = -g -W -Wall -I. -I$(INC_DIR) -I$(GIF_INC)
  60.  
  61. #
  62. # Default rule for compilation.
  63. #
  64. %.o: %.c
  65.     $(CC) -c $(CFLAGS) $(DFLAGS) -o $@ $<
  66.  
  67. #
  68. # All libraries.
  69. #
  70. LIBS = $(GEOM_LIB) $(PRSR_LIB) $(CAGD_LIB) $(MISC_LIB) $(GIF_LIB) -los2
  71.  
  72.  
  73. #
  74. # Binding command and options (see EMX gcc develop.doc file for more).
  75. #
  76. EMXBIND = emxbind
  77. BIND = $(EMXBIND) $(EMX_DIR)/bin/emxl
  78. BINDOPT = -f64
  79.  
  80. #
  81. # Default rule to make an executable file.
  82. #
  83. %.exe:
  84.     $(CC) $(CFLAGS) -o $(*F) $^ $(LIBS)
  85.     $(STRIP) $(*F)
  86.     $(BIND) $(*F) $(BINDOPT)
  87.     rm $(*F)
  88.